package com.jkoss.wine.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * 常用功能
 * 
 * @Author 周华军
 * @Version 1.0, 2018-11-01
 * @See
 * @Since com.jkoss.wine.system.entity
 * @Description: TODO
 */
public class Commonly extends Model<Commonly> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId("id")
	private String id;
	/**
	 * 角色id
	 */
	@TableField("rid")
	private String rid;
	/**
	 * 权限id
	 */
	@TableField("pid")
	private String pid;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRid() {
		return rid;
	}

	public void setRid(String rid) {
		this.rid = rid;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Commonly{" + ", id=" + id + ", rid=" + rid + ", pid=" + pid + "}";
	}
}
